package com.ruoyi.mateDevice.mapper;

import com.ruoyi.mateCheck.domain.MateUserDevice;
import com.ruoyi.mateDevice.domain.DeviceCalibration;
import com.ruoyi.mateDevice.domain.DeviceCalibrationModel;
import com.ruoyi.mateDevice.domain.DeviceClean;
import com.ruoyi.mateDevice.domain.DevicePreserve;
import com.ruoyi.mateDevice.domain.DeviceRepair;
import com.ruoyi.mateDevice.domain.DeviceRepairModel;
import com.ruoyi.mateDevice.domain.DeviceScrap;
import com.ruoyi.mateDevice.domain.MateDevice;
import com.ruoyi.mateDevice.domain.MateDeviceModel;
import com.ruoyi.mateWarehousing.domain.MateWarehousing;
import com.ruoyi.material.domain.MaterialProduct;
import com.ruoyi.mtAudit.domain.MtAudit;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author
 * @Version 1.0
 */
@Mapper
public interface MateDeviceMapper {
    public int  insertMateDevice(MateDevice mateDevice);

    public List<MateDevice> selectMateDeviceList(MateDevice mateDevice);

    public int updatemateDevice(MateDevice mateDevice);

    public List<MaterialProduct> selectProduct(Long companyId);

    public int insertMateDeviceModel(MateDeviceModel mateDeviceModel);

    public void  deleteMateDevice(Long mtdeviceId);

    public int updateMateDeviceModel(MateDeviceModel mateDeviceModel);

    List<Long> selectMateDeviceModelList(Long mtdeviceId);

    public MateDevice selectMateDevice(Long mtdeviceId);

    public void  deleteMateDeviceModel(Long deviceNo);

    List<MateDeviceModel> selectMateDeviceModels(Long mtdeviceId);

    public MateDevice selectMateDeviceListById(Map<String,Object> resMap);

    public int insertUserDevice(MateUserDevice mateUserDevice);

    public List<MateUserDevice> selectMateUserDeviceList(MateUserDevice mateUserDevice);

    public List<MateUserDevice> selectUserDeviceList(MateUserDevice mateUserDevice);

    public MateUserDevice selectUserEdit(Long userDeviceId);

    public void  deleteUserDevice(Long ckInformationId);

    public int selectMateUserDeviceByOrderId(Long ckInformationId);

    public List<MateDeviceModel> selectDeviceByProductId(MateDeviceModel mateDeviceModel);

    public List<MateUserDevice> selectmateUserDevices(MateWarehousing mateWarehousing);

    public void remove(Long mtdeviceId);

    public List<MateDevice> selectDevice(Long deptId);

    public String selectDeviceName(Long mtdeviceId);

    List<MateUserDevice> selectInformation(Map<String,Object> resMap);

    public int updateUserDevice(MateUserDevice mateUserDevice);

    public int addRepair(DeviceRepair deviceRepair);

    public void  addRepairModel(DeviceRepairModel deviceRepairModel);

    public List<DeviceRepair> selectRepairList(DeviceRepair deviceRepaire);

    public List<DevicePreserve> perserveList(DevicePreserve devicePreserve);

    public int addPreserve(DevicePreserve devicePreserve);

    public DeviceRepair selectRepair(Long  repairId);

    public DevicePreserve selectPreserve(Long preserveId);

    public int addDeviceClean(DeviceClean deviceClean);

    public List<DeviceClean> selectCleanList(DeviceClean deviceClean);

    public DeviceClean selectDeviceClean(Long deviceCleanId);

    public int addScrap(DeviceScrap deviceScrap);

    public List<DeviceScrap> deviceScrapList(DeviceScrap scrap);

    public DeviceScrap selectDeviceScrap(Long scrapId);

    public List<DeviceRepair> selectDeviceRepairInformation(Map<String,Object> resMap);

    public int addDeviceCalibration(DeviceCalibration deviceCalibration);

    public int addDeviceCalibrationModel(DeviceCalibrationModel calibrationModel);

    public List<DeviceCalibration> deviceCalibrationList(DeviceCalibration deviceCalibration);

    public DeviceCalibration selectDeviceCalibration(Long calibrationId);
}
